<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/css/bootstrap-table.min.css">
<script type="text/javascript">
			function checkDel() {
				if(confirm("确定要删除吗？")) {
					return true;
				} else {
					return false;
				}
			}
</script>
</head>
<body>
	<div class="page-wrap">
		<div class="container-fluid">
			<div class="row-fluid">
					<h3>信息列表</h3>
					<div class="well-content">
						<table class="table table-striped table-bordered" id="managed-table"
							data-toggle="table" data-show-columns="true" data-search="true"
							data-show-refresh="true" data-show-toggle="true"
							data-pagination="true"       >
							<thead>
								<tr>
									<th>ID号</th>
									<th>用户名</th>
									<th>密码</th>
									<th>权限</th>
									<th>创建日期</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${list }" var="bean">
									<tr>
										<td>${bean.id }</td>
										<td>${bean.username }</td>
										<td>${bean.password }</td>
										<td>${bean.power }</td>
										<td>${bean.createDate }</td>
										<td class="btn btn-default"><a
											href=" ${pageContext.request.contextPath}/toUpdateAdminAction?id=${bean.id}">修改</a>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
											onclick="return checkDel()"
											href=" ${pageContext.request.contextPath}/deleteAdminAction?id=${bean.id }">删除</a>
										</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
		</div>
	</div>
	</div>
	<script src="${pageContext.request.contextPath}/common/js/jquery.min.js"></script>
	<script src="${pageContext.request.contextPath}/common/js/bootstrap.min.js"></script>
	<script src="${pageContext.request.contextPath}/common/js/tableExport.js"></script>
	<script src="${pageContext.request.contextPath}/common/js/jquery.base64.js"></script>
	<script src="${pageContext.request.contextPath}/common/js/bootstrap-table.js"></script>
	<script src="${pageContext.request.contextPath}/common/js/bootstrap-table-export.js"></script>
</body>
</html>